home *** CD-ROM | disk | FTP | other *** search
/ All for Cell Phones: Sony Ericsson / Sony-Ericsson 2004.iso / Java / Excel / Sheet.jar / sheet / SheetShow$8.class (.txt) < prev    next >
Encoding:
Java Class File  |  2001-09-03  |  1.0 KB  |  31 lines

  1. package sheet;
  2.  
  3. import javax.microedition.lcdui.Command;
  4. import javax.microedition.lcdui.CommandListener;
  5. import javax.microedition.lcdui.Displayable;
  6.  
  7. class SheetShow$8 implements CommandListener {
  8.    private final Command val$yesCommand;
  9.    private final Runnable val$action;
  10.    private final Command val$noCommand;
  11.    private final SheetShow this$0;
  12.  
  13.    SheetShow$8(SheetShow var1, Command var2, Runnable var3, Command var4) {
  14.       this.this$0 = var1;
  15.       this.val$yesCommand = var2;
  16.       this.val$action = var3;
  17.       this.val$noCommand = var4;
  18.    }
  19.  
  20.    public void commandAction(Command var1, Displayable var2) {
  21.       if (var1 == this.val$yesCommand) {
  22.          SheetShow.access$1200(this.this$0, this.val$action);
  23.       } else if (var1 == this.val$noCommand) {
  24.          this.val$action.run();
  25.       } else {
  26.          this.this$0.show();
  27.       }
  28.  
  29.    }
  30. }
  31.